<?php

/**
 * 会员相册
 * @return
 * @author yuncran@126.com
 */

namespace app\model;

use app\BaseModel;

class UserImageModel extends BaseModel
{

    protected $name = 'user_image';

    protected $pk = "id";
    protected $jsonAssoc = true;

    public function getCreateTimeAttr($value)
    {
        $time = date('Y-m-d H:i:s', $value);
        if (empty($value)) {
            $time = date('Y-m-d H:i:s', $time);
        }
        return $time;
    }

}